import {AxiosRequestConfig} from "axios";

export interface AxiosRequestOptions extends AxiosRequestConfig{
  showTips?: boolean,
  showLoading?: boolean
}

export interface APIResponse<T> {
  Code: string,
  Data: T,
  Msg: string
}

export interface ApiParams {
  [key: string]: any
}

export interface LoadDataTableRes {
  TableData: Array<{ [key: string]: unknown }>
  TableHeaders: Array<string>
  currentPage: number
  pageSize: number
  total: number
}
